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 |
State ⇒ Resolved
State ⇒ Assigned
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Task modify: Description is not saved if previous value is NULL
Queue ⇒ Nag
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.