6.0.0-beta1
1/10/26

[#12197] ActiveSync: Fix importing "low" importance setting on tasks
Summary ActiveSync: Fix importing "low" importance setting on tasks
Queue Synchronization
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 04/19/2013 (4649 days ago)
Due
Updated 04/22/2013 (4646 days ago)
Assigned
Resolved 04/19/2013 (4649 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
04/22/2013 01:52:58 PM Thomas Jarosch Comment #5 Reply to this comment
Fixed in a more general way.
Fix is working fine.


04/19/2013 10:47:41 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_0):

commit 1b4fc14eeeab4a98e92538143eef3abaa9ad7dd5
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Fri Apr 19 17:09:50 2013 -0400

     Bug: 12197 Fix returning default value when value is defined, but empty.

  .../lib/Horde/ActiveSync/Message/Base.php          |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/1b4fc14eeeab4a98e92538143eef3abaa9ad7dd5
04/19/2013 09:12:44 PM Michael Rubinsky Comment #3
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
Fixed in a more general way.
04/19/2013 09:12:30 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit fa7ba65815331488ee369ae0cf605553ff9f233b
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Fri Apr 19 17:09:50 2013 -0400

     Bug: 12197 Fix returning default value when value is defined, but empty.

  .../lib/Horde/ActiveSync/Message/Base.php          |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/fa7ba65815331488ee369ae0cf605553ff9f233b
04/19/2013 12:56:33 PM Thomas Jarosch New Attachment: 0001-ActiveSync-Fix-importing-low-importance-setting-on-t.patch Download
Patch ⇒ Yes
 
04/19/2013 12:55:40 PM Thomas Jarosch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ ActiveSync: Fix importing "low" importance setting on tasks
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

setting a "low" importance value for a task is not properly imported 
from the PIM.
It will always turn up as "normal" importance.

The AS value for low importance is zero. The importance flag is 
queried via getImportance() which in turn uses _getAttribute(). Since 
empty() returns true for "0", we will use the default value of "normal".

Classic empty() vs. isset() problem. Attached patch fixes the issue.

Cheers,
Thomas

Saved Queries