fix tagged_form_field
This commit is contained in:
@@ -220,33 +220,6 @@ class ProfileController extends AbstractCrudController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function checkRequirements($formData)
|
|
||||||
{
|
|
||||||
$type = $formData['type'];
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getRequirements($type, $formData)
|
|
||||||
{
|
|
||||||
$requirements = array();
|
|
||||||
foreach($formData as $data => $value) {
|
|
||||||
if(!strstr($data, ':')) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$couple = explode(':', $data);
|
|
||||||
|
|
||||||
if(count($couple) != 2 || $couple[0] != $type) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$requirements[$couple[1]] = $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $requirements;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function updateAction()
|
public function updateAction()
|
||||||
{
|
{
|
||||||
if (null !== $response = $this->checkAuth($this->resourceCode, AccessManager::UPDATE)) return $response;
|
if (null !== $response = $this->checkAuth($this->resourceCode, AccessManager::UPDATE)) return $response;
|
||||||
|
|||||||
@@ -255,8 +255,6 @@ $this->assignFieldValues($template, $formFieldView->vars["full_name"], $fieldVar
|
|||||||
self::$taggedFieldsStack[self::$taggedFieldsStackPosition]['view']->setRendered();
|
self::$taggedFieldsStack[self::$taggedFieldsStackPosition]['view']->setRendered();
|
||||||
|
|
||||||
$repeat = true;
|
$repeat = true;
|
||||||
} else {
|
|
||||||
$content = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $repeat) {
|
if (! $repeat) {
|
||||||
@@ -264,7 +262,9 @@ $this->assignFieldValues($template, $formFieldView->vars["full_name"], $fieldVar
|
|||||||
self::$taggedFieldsStackPosition = null;
|
self::$taggedFieldsStackPosition = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $content;
|
if(null !== $content) {
|
||||||
|
return $content;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderHiddenFormField($params, \Smarty_Internal_Template $template)
|
public function renderHiddenFormField($params, \Smarty_Internal_Template $template)
|
||||||
|
|||||||
Reference in New Issue
Block a user