[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 10/27: Distribution key ; bug cosmetique, rap
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 10/27: Distribution key ; bug cosmetique, rappel des valeurs incorrectes |
Date: |
Thu, 02 Oct 2014 14:23:11 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit e43be1e2d895642f1b7d4b1895847247fbc83e6e
Author: Dany De Bontridder <address@hidden>
Date: Tue Sep 16 22:00:53 2014 +0200
Distribution key ; bug cosmetique, rappel des valeurs incorrectes
---
include/template/anc_key_input.php | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/include/template/anc_key_input.php
b/include/template/anc_key_input.php
index dde2e59..279dd2f 100644
--- a/include/template/anc_key_input.php
+++ b/include/template/anc_key_input.php
@@ -160,6 +160,7 @@
where kd_id=$1 or kd_id is null
order by jrn_def_name ',
array($this->key->getp('id')));
}
+ $post_jrn=HtmlInput::default_value_post("jrn",-1);
?>
<table id="jrn_def_tb" class="result">
<?php for ($i=0; $i<count($jrn); $i++): ?>
@@ -167,7 +168,13 @@
<td>
<?php $checkbox=new ICheckBox("jrn[]"); ?>
<?php $checkbox->value=$jrn[$i]['jrn_def_id'];
?>
- <?php
$checkbox->selected=($jrn[$i]['kl_id']=="")?false:true; ?>
+ <?php
+ $checkbox->selected=false;
+ if ( ($post_jrn == -1 && $jrn[$i]['kl_id']<>""
) || (is_array($post_jrn) && in_array($jrn[$i]['jrn_def_id'], $post_jrn)))
+ {
+ $checkbox->selected=true;
+ }
+ ?>
<?php echo $checkbox->input(); ?>
</td>
<td>
- [Noalyss-commit] [noalyss] branch master updated (59e76cb -> 5864835), Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 04/27: Documentation, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 05/27: Possibilité d'utiliser la comptabilité analytique en mode linéaire (non croisée) Task #1020 - Comptabilité analytique : utilisation non croisée des plans, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 10/27: Distribution key ; bug cosmetique, rappel des valeurs incorrectes,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/27: Javascript script : posY, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 08/27: Add new keys, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 12/27: Add documentation add_row_key Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 06/27: Possibilité d'utiliser la comptabilité analytique en mode linéaire (non croisée) Task #1020 - Comptabilité analytique : utilisation non croisée des plans, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 11/27: Distribution key ; bouton ajout ligne Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 02/27: Ajout des clef de répartition pour la comptabilité analytique, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 09/27: Distribution key : add button new, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 17/27: remove debug info, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 03/27: Database::make_array ajoute un paramètre dans le cas où le SQL admet une condition, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 16/27: Add p_jrn is the bottom of the popup, to allow the use of distribution key, Dany De Bontridder, 2014/10/02