jyma...@adullact.net
unread,Dec 9, 2016, 12:39:20 PM12/9/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openmairi...@googlegroups.com
Author: jymadier
Date: 2016-12-09 18:39:17 +0100 (Fri, 09 Dec 2016)
New Revision: 5422
Modified:
branches/contentieux/data/pgsql/v3.34.3.dev0.sql
branches/contentieux/obj/dossier.class.php
branches/contentieux/sql/pgsql/dossier_contentieux.inc.php
Log:
* Ajout de droits manquants pour l'ajout de demandes contentieux
* Corrections de PHP notices
* Ajout de l'onglet dossiers li?\195?\169s aux dossiers contentieux
Modified: branches/contentieux/data/pgsql/v3.34.3.dev0.sql
===================================================================
--- branches/contentieux/data/pgsql/v3.34.3.dev0.sql 2016-12-09 17:18:33 UTC (rev 5421)
+++ branches/contentieux/data/pgsql/v3.34.3.dev0.sql 2016-12-09 17:39:17 UTC (rev 5422)
@@ -704,6 +704,18 @@
NOT EXISTS (
SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_type_detaille_aff_form' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR POLYVALENT')
);
+INSERT INTO om_droit (om_droit, libelle, om_profil)
+SELECT nextval('om_droit_seq'),'dossier_autorisation_type_detaille_aff_form',(SELECT om_profil FROM om_profil WHERE libelle = 'ASSISTANTE')
+WHERE
+NOT EXISTS (
+ SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_type_detaille_aff_form' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'ASSISTANTE')
+);
+INSERT INTO om_droit (om_droit, libelle, om_profil)
+SELECT nextval('om_droit_seq'),'dossier_autorisation_type_detaille_aff_form',(SELECT om_profil FROM om_profil WHERE libelle = 'TECHNICIEN')
+WHERE
+NOT EXISTS (
+ SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_type_detaille_aff_form' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'TECHNICIEN')
+);
-- Ajout des droits de création de dossiers contentieux
INSERT INTO om_droit (om_droit, libelle, om_profil)
SELECT nextval('om_droit_seq'),'demande_nouveau_dossier_contentieux_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'ASSISTANTE')
Modified: branches/contentieux/obj/dossier.class.php
===================================================================
--- branches/contentieux/obj/dossier.class.php 2016-12-09 17:18:33 UTC (rev 5421)
+++ branches/contentieux/obj/dossier.class.php 2016-12-09 17:39:17 UTC (rev 5422)
@@ -2064,6 +2064,7 @@
}
$form->setVal('dossier_requerant', $infos_requerant);
}
+ $dossier_petitionnaires = '';
if ($this->getVal('dossier_petitionnaire') != '') {
$dossier_petitionnaires = $this->getVal('dossier_petitionnaire');
}
@@ -2074,6 +2075,7 @@
$form->setVal('dossier_petitionnaires', $dossier_petitionnaires);
}
if ($affichage_form === 'CTX IN') {
+ $dossier_contrevenants = '';
if ($this->getVal('dossier_contrevenant') != '') {
$dossier_contrevenants = $this->getVal('dossier_contrevenant');
}
@@ -2083,7 +2085,7 @@
}
$form->setVal('dossier_contrevenants', $dossier_contrevenants);
}
- if ($validation==0) {
+ if ($validation == 0) {
if ($maj == 0){
$form->setVal('annee', date('y'));
Modified: branches/contentieux/sql/pgsql/dossier_contentieux.inc.php
===================================================================
--- branches/contentieux/sql/pgsql/dossier_contentieux.inc.php 2016-12-09 17:18:33 UTC (rev 5421)
+++ branches/contentieux/sql/pgsql/dossier_contentieux.inc.php 2016-12-09 17:39:17 UTC (rev 5422)
@@ -27,7 +27,7 @@
$sousformulaire[] = "dossier_message";
$sousformulaire[] = "blocnote";
$sousformulaire[] = "document_numerise";
-$sousformulaire[] = "dossier_autorisation";
+$sousformulaire[] = "lien_dossier_dossier";
// Tri par défaut des tableaux contentieux
$tri = " ORDER BY dossier.date_depot DESC, dossier.dossier DESC ";