Make manage[form] config optional
There are times when manage form mode just isn't needed. This will make the view[list] unclickable, which is OK
This commit is contained in:
parent
0b345ad592
commit
cd0cd260b5
|
|
@ -795,7 +795,10 @@ class RelationController extends ControllerBehavior
|
|||
*/
|
||||
elseif ($this->manageMode == 'form') {
|
||||
|
||||
$config = $this->makeConfigForMode('manage', 'form');
|
||||
if (!$config = $this->makeConfigForMode('manage', 'form', false)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$config->model = $this->relationModel;
|
||||
$config->arrayName = class_basename($this->relationModel);
|
||||
$config->context = $this->evalFormContext('manage', !!$this->manageId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue