6.0.0-beta1
10/17/25

[#569] Task modify: Description is not saved if previous value is NULL
Summary Task modify: Description is not saved if previous value is NULL
Queue Nag
Queue Version 1.1.1
Type Bug
State Resolved
Priority 2. Medium
Owners chuck (at) horde (dot) org
Requester rvs (at) angara (dot) ru
Created 09/13/2004 (7704 days ago)
Due
Updated 09/14/2004 (7703 days ago)
Assigned 09/14/2004 (7703 days ago)
Resolved 09/14/2004 (7703 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/14/2004 06:39:14 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in RELENG_1 CVS, thanks.
09/14/2004 06:38:59 PM Chuck Hagenbuch Assigned to Chuck Hagenbuch
State ⇒ Assigned
 
09/13/2004 10:50:20 AM rvs (at) angara (dot) ru Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Task modify: Description is not saved if previous value is NULL
Queue ⇒ Nag
Reply to this comment
The Description is not saved if previous value is NULL.

This is due to isset() function using in lib/Driver.php (v 1.22.2.6) 
in line 177:



if (isset($this->_tasks[$id]) && 
isset($this->_tasks[$id][strtolower($attribute)])) {



The issue can be resolved by replacing second isset() by array_key_exists()



if (isset($this->_tasks[$id]) && 
array_key_exists(strtolower($attribute), $this->_tasks[$id])) {



After applying this patch all works fine.


Saved Queries