chg: [decaying:add] `all_orgs`` checked by default

pull/5032/head
mokaddem 2019-08-16 16:20:05 +02:00
parent 3e73567f01
commit f64a9f6265
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,8 @@
echo '<div class="alert alert-warning">' . __('You are editing a Default Model, only restricted edition is allowed.') . '</div>';
echo $this->Form->input('all_orgs', array(
'label' => __('Can other organization use this model'),
'type' => 'checkbox'
'type' => 'checkbox',
'checked' => isset($this->request->data['DecayingModel']['all_orgs']) ? $this->request->data['DecayingModel']['all_orgs'] : true
));
echo $this->Form->input('enabled', array(
'type' => 'checkbox'
@ -23,7 +24,8 @@
));
echo $this->Form->input('all_orgs', array(
'label' => __('Can other organization use this model'),
'type' => 'checkbox'
'type' => 'checkbox',
'checked' => isset($this->request->data['DecayingModel']['all_orgs']) ? $this->request->data['DecayingModel']['all_orgs'] : true
));
echo $this->Form->input('enabled', array(
'type' => 'checkbox'