ceri...@adullact.net
unread,Jul 26, 2017, 9:56:18 AM7/26/17Sign 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: cerini_j
Date: 2017-07-26 15:56:16 +0200 (Wed, 26 Jul 2017)
New Revision: 7282
Modified:
branches/4.4.0_bug_recherche_datd/sql/pgsql/dossier_autorisation.inc.php
branches/4.4.0_bug_recherche_datd/tests/200_dossier_autorisation.robot
Log:
Changement du select et du contenu du tableau
Modified: branches/4.4.0_bug_recherche_datd/sql/pgsql/dossier_autorisation.inc.php
===================================================================
--- branches/4.4.0_bug_recherche_datd/sql/pgsql/dossier_autorisation.inc.php 2017-07-26 13:32:25 UTC (rev 7281)
+++ branches/4.4.0_bug_recherche_datd/sql/pgsql/dossier_autorisation.inc.php 2017-07-26 13:56:16 UTC (rev 7282)
@@ -60,7 +60,7 @@
dossier_autorisation.terrain_adresse_bp,\' \',
dossier_autorisation.terrain_adresse_cedex
)) as "'._("localisation").'"',
- 'dossier_autorisation_type_detaille.code as "'._("dossier autorisation type detaille").'"',
+ 'dossier_autorisation_type_detaille.libelle as "'._("dossier autorisation type detaille").'"',
'to_char(dossier_autorisation.depot_initial ,\'DD/MM/YYYY\') as "'._("date de premier depot").'"',
'to_char(dossier_autorisation.date_decision ,\'DD/MM/YYYY\') as "'._("date de decision").'"',
$case_etat.' as "'._("etat").'"',
@@ -109,8 +109,18 @@
$champs['dossier_autorisation_type_detaille'] = array(
'colonne' => 'dossier_autorisation_type_detaille',
'table' => 'dossier_autorisation_type_detaille',
- 'libelle' => _('dossier autorisation type detaille'),
- 'type' => 'select'
+ 'libelle' => _('Type'),
+ 'type' => 'select',
+ 'subtype' => 'sqlselect',
+ 'sql' => "
+ SELECT dossier_autorisation_type_detaille.dossier_autorisation_type_detaille,
+ dossier_autorisation_type_detaille.libelle
+ FROM " . DB_PREFIXE ."dossier_autorisation_type_detaille
+ INNER JOIN " . DB_PREFIXE ."dossier_autorisation_type
+ ON dossier_autorisation_type_detaille.dossier_autorisation_type
+ = dossier_autorisation_type.dossier_autorisation_type
+ WHERE dossier_autorisation_type.cacher_da IS FALSE
+ ORDER BY dossier_autorisation_type_detaille.libelle"
);
//
$champs['petitionnaire'] = array(
Modified: branches/4.4.0_bug_recherche_datd/tests/200_dossier_autorisation.robot
===================================================================
--- branches/4.4.0_bug_recherche_datd/tests/200_dossier_autorisation.robot 2017-07-26 13:32:25 UTC (rev 7281)
+++ branches/4.4.0_bug_recherche_datd/tests/200_dossier_autorisation.robot 2017-07-26 13:56:16 UTC (rev 7282)
@@ -150,7 +150,6 @@
Depuis la page d'accueil admin admin
- Permis de construire pour une maison individuelle et / ou ses annexes
&{args_type_da} = Create Dictionary
... cacher_da=true
Modifier le type de dossier d'autorisation PC ${args_type_da}
@@ -157,12 +156,12 @@
Go To Tab dossier_autorisation
${listeRecuperee} = Get List Items dossier_autorisation_type_detaille
- List Should Contain Value ${listeRecuperee} Permis de construire pour une maison individuelle et / ou ses annexes
+ List Should Not Contain Value ${listeRecuperee} Permis de construire pour une maison individuelle et / ou ses annexes
Depuis la page d'accueil consu consu
Go To Tab dossier_autorisation_avis
${listeRecuperee} = Get List Items dossier_autorisation_type_detaille
- List Should Contain Value ${listeRecuperee} Permis de construire pour une maison individuelle et / ou ses annexes
+ List Should Not Contain Value ${listeRecuperee} Permis de construire pour une maison individuelle et / ou ses annexes
&{args_petitionnaire} = Create Dictionary
... particulier_nom=MAROIS