Commit 1f8b2b88bfaa22bc9b5ff6f3dccb8562f450b297
1 parent
13a6d18c
Exists in
master
and in
1 other branch
Bugfixing sites (en cours)...
Showing
4 changed files
with
8 additions
and
1 deletions
Show diff stats
CHANGES.txt
... | ... | @@ -121,6 +121,7 @@ Outre ces changements, voici d'autres changements importants : |
121 | 121 | |
122 | 122 | ------- |
123 | 123 | 07/10/2020 v4.105.3-3.7.9 (EP) |
124 | + - (e) Ajout de sections dans la vue du matériel (+ joli) | |
124 | 125 | - (b) Bugfixed configuration |
125 | 126 | - (b) Bugfixed tests de l'entité Projets |
126 | 127 | - (i) refactorisation de la vue 'view' pour TOUTES les 'autres' entités (étape 3 sur 3, terminé) | ... | ... |
src/Model/Table/SitesTable.php
... | ... | @@ -25,7 +25,8 @@ class SitesTable extends AppTable |
25 | 25 | parent::initialize($config); |
26 | 26 | |
27 | 27 | $this->setTable('sites'); |
28 | - $this->setDisplayField('id'); | |
28 | + //$this->setDisplayField('id'); | |
29 | + $this->setDisplayField('nom'); | |
29 | 30 | $this->setPrimaryKey('id'); |
30 | 31 | |
31 | 32 | $this->hasMany('Materiels', [ | ... | ... |
src/Template/Materiels/add_edit.ctp
tests/TestCase/Controller/MaterielsControllerTest.php
... | ... | @@ -777,7 +777,10 @@ class MaterielsControllerTest extends General { |
777 | 777 | // ADD |
778 | 778 | //debug($materiel); |
779 | 779 | //$this->post('/materiels/add', $this->newMaterielWithAllMandatoryFields); |
780 | + debug("avant"); | |
781 | + debug($materiel); | |
780 | 782 | $this->post('/materiels/add', $materiel); |
783 | + debug("après"); | |
781 | 784 | $nbmat++; |
782 | 785 | //debug("after $nbmat"); |
783 | 786 | ... | ... |