[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r5133 - phpcompta/tags/rel650/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r5133 - phpcompta/tags/rel650/include |
Date: |
Mon, 1 Oct 2012 22:16:56 +0200 (CEST) |
Author: danydb
Date: 2012-10-01 22:16:55 +0200 (Mon, 01 Oct 2012)
New Revision: 5133
Modified:
phpcompta/tags/rel650/include/class_icard.php
Log:
Bug in the search button if id was not set
Modified: phpcompta/tags/rel650/include/class_icard.php
===================================================================
--- phpcompta/tags/rel650/include/class_icard.php 2012-10-01 20:04:19 UTC
(rev 5132)
+++ phpcompta/tags/rel650/include/class_icard.php 2012-10-01 20:16:55 UTC
(rev 5133)
@@ -128,7 +128,7 @@
$this->callback='null';
$this->javascript='';
$this->autocomplete=1;
- $this->id=$p_id;
+ $this->id=($p_id != "")?$p_id:$name;
}
/*!\brief set the javascript callback function
* by default it is update_value called BEFORE the querystring is send
@@ -294,8 +294,10 @@
if (isset($this->$att) )
$a.="this.".$att."='".$this->$att."';";
}
- if (isset($this->id))
+ if (isset($this->id) && $this->id != "")
$a.="this.inp='".$this->id."';";
+ else
+ $a.="this.inp='".$this->name."';";
$a.="this.popup='ipop_card';";
$button->javascript=$a.' search_card(this)';
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r5133 - phpcompta/tags/rel650/include,
phpcompta-dev <=