[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r5480 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r5480 - phpcompta/trunk/include |
Date: |
Wed, 9 Oct 2013 19:53:24 +0200 (CEST) |
Author: danydb
Date: 2013-10-09 19:53:24 +0200 (Wed, 09 Oct 2013)
New Revision: 5480
Modified:
phpcompta/trunk/include/class_pre_op_advanced.php
Log:
Bug : cannot save accounting in predef
Modified: phpcompta/trunk/include/class_pre_op_advanced.php
===================================================================
--- phpcompta/trunk/include/class_pre_op_advanced.php 2013-10-09 17:07:34 UTC
(rev 5479)
+++ phpcompta/trunk/include/class_pre_op_advanced.php 2013-10-09 17:53:24 UTC
(rev 5480)
@@ -46,8 +46,8 @@
{
if ( ! isset ($_POST['poste'.$i]) && ! isset ($_POST['qc_'.$i]))
continue;
-
$this->{'poste'.$i}=(isset($_POST['qc_'.$i]))?$_POST['qc_'.$i]:$_POST['poste'.$i];
- $this->{'isqc'.$i}=(isset($_POST['qc_'.$i]))?'t':'f';
+ $this->{'poste'.$i}=(trim($_POST['qc_'.$i]) != ""
)?$_POST['qc_'.$i]:$_POST['poste'.$i];
+ $this->{'isqc'.$i}=(trim($_POST['qc_'.$i]) != "")?'t':'f';
$this->{"amount".$i}=$_POST['amount'.$i];
$this->{"ck".$i}=(isset($_POST['ck'.$i]))?'t':'f';
---
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] r5480 - phpcompta/trunk/include,
phpcompta-dev <=