mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
implement logic for hiddens phone adapters
This commit is contained in:
parent
c0c79781bf
commit
05cb62a503
2 changed files with 17 additions and 8 deletions
|
@ -209,6 +209,13 @@ class Phone extends \descartes\Controller
|
|||
return $this->redirect(\descartes\Router::url('Phone', 'add'));
|
||||
}
|
||||
|
||||
if ($find_adapter['meta_hidden'])
|
||||
{
|
||||
\FlashMessage\FlashMessage::push('danger', 'Ce type de téléphone ne peux pas être créé via l\'interface graphique.');
|
||||
|
||||
return $this->redirect(\descartes\Router::url('Phone', 'add'));
|
||||
}
|
||||
|
||||
//If missing required data fields, error
|
||||
foreach ($find_adapter['meta_data_fields'] as $field)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue