noalyss-commit
[Top][All Lists]
Advanced

[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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]