diff --git a/code/model/VirtualPage.php b/code/model/VirtualPage.php index d300a038..b2ae015e 100644 --- a/code/model/VirtualPage.php +++ b/code/model/VirtualPage.php @@ -458,6 +458,22 @@ class VirtualPage extends Page { if(parent::hasMethod($method)) return true; return $this->copyContentFrom()->hasMethod($method); } + + /** + * Return the "casting helper" (a piece of PHP code that when evaluated creates a casted value object) for a field + * on this object. + * + * @param string $field + * @return string + */ + public function castingHelper($field) { + if($this->copyContentFrom()) { + return $this->copyContentFrom()->castingHelper($field); + } else { + return parent::castingHelper($field); + } + } + } /** diff --git a/javascript/CMSMain.EditForm.js b/javascript/CMSMain.EditForm.js index 6e485750..fecce745 100644 --- a/javascript/CMSMain.EditForm.js +++ b/javascript/CMSMain.EditForm.js @@ -118,7 +118,7 @@ // update button updateURLFromTitle = $('