Skip to content
Snippets Groups Projects

Dev#12992 custom fields

Merged Patrick Barroca requested to merge dev#12992_custom_fields into WIP
Compare and
+ 773
94
Preferences
Compare changes
Files
@@ -103,11 +103,11 @@ class Admin_CustomFieldsController extends ZendAfi_Controller_Action {
public function valuesAction() {
$model = Class_CustomField_Model::getModel($this->_getParam('model'));
if (!$model_values = $model->find($model_id = $this->_getParam('id'))) {
$model_values = $model->find($model_id = $this->_getParam('id'));
if ($model_values->customizedModelIsNew()) {
$edit_url = $model->getEditUrl();
$edit_url['id'] = $this->_getParam('id');
$this->_redirect($this->view->url($edit_url, null, true));
$this->_redirect($this->view->url($edit_url, null, true), ['prependBase' => false]);
return;
}