silverstripe-framework/tests/view
Jeremy Thomerson 964b3f2d48 FIX: <% if Link %> wasn't working
Since ViewableData was returning a casting helper for Link, but DataObject was
only using $this->$fieldname to set values on that casting helper, you could
not use <% if Link %> (or <% if $Link %>) in your templates because Link is not
a field, and thus had no value to be set on the casting helper, causing
hasValue to think that there was no value.  Since DataObject->dbObject says that
"it only matches fields and not methods", it seems safe to have it call db(..)
to get the field spec, and not call ViewableData->castingHelper at all.
2013-06-15 13:44:03 +00:00
..
themes/layouttest NEW Disable shortcodes in $Layout and $Content in SSViewer 2013-03-14 12:49:03 +13:00
ContentNegotiatorTest.php Added some more XHTML replacement and relative unit test. Content_type comfigurable. 2013-03-12 16:06:59 +01:00
SSViewerCacheBlockTest.php Fixed deprecated usage of <% control %> 2013-03-19 12:58:14 +01:00
SSViewerTest.php FIX: <% if Link %> wasn't working 2013-06-15 13:44:03 +00:00
ViewableDataTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00