Skip to content
Snippets Groups Projects
Commit 9591be79 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch...

Merge branch 'dev#49315_ajouter_un_commentaire_sur_les_postes_etou_groupe_de_poste_visible_lors_de_la_reservation_cote_bokeh' into 'stable'

dev #49315 fix note json key

See merge request !2407
parents ab131c11 53c72f60
Branches
Tags
4 merge requests!2420Hotline master,!2415Master,!2414Hotline master,!2407dev #49315 fix note json key
Pipeline #2923 passed with stage
in 27 minutes and 47 seconds
- ticket #49315 : AFI Multimedia : correction de l'enregistrement des notes de postes.
\ No newline at end of file
......@@ -28,8 +28,8 @@ class Multimedia_DeviceLoader extends Storm_Model_Loader {
public function fromJsonModelWithGroup($json_model, $device_group) {
if (!$model = $this->findByIdOrigineAndLocation($json_model->id, $device_group->getLocation()))
$model = $this->newInstance()->setIdOrigine($this->getIdOrigineWithLocation($json_model->id, $device_group->getLocation()));
$note = isset($json_model->note)
? $json_model->note
$note = isset($json_model->notes)
? $json_model->notes
: '';
$model
......
......@@ -115,7 +115,7 @@ l66WXceACmsgGWEdHMB7ZPUd4HqR5bdE1Xnr1Q0Z9IIku6Naxt/yy0P5Gv+ZlW7U
$this->fixture('Class_Multimedia_Device', ['id' => 34, 'id_origine' => '1-34']);
$this->fixture('Class_Multimedia_DeviceGroup', ['id' => 1, 'id_origine' => '1-64', 'libelle'=>'groupe Y']);
$datas = '[{"libelle":"Groupe 1", "id":2, "site":{"id":1,"libelle":"Site 1","admin_url":"192.168.2.92"}, "postes":[{"id":1, "libelle":"Poste 1", "os":"Windows XP", "maintenance":"1", "note":"Le clavier a perdu des touches."}, {"id":2, "libelle":"Poste 2", "os":"Ubuntu Lucid Lynx", "maintenance":"0"}]}]';
$datas = '[{"libelle":"Groupe 1", "id":2, "site":{"id":1,"libelle":"Site 1","admin_url":"192.168.2.92"}, "postes":[{"id":1, "libelle":"Poste 1", "os":"Windows XP", "maintenance":"1", "notes":"Le clavier a perdu des touches."}, {"id":2, "libelle":"Poste 2", "os":"Ubuntu Lucid Lynx", "maintenance":"0"}]}]';
$this->postDispatch(
'/push/multimedia/config',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment