[Tickets #12016] Re: kronolith set wrong type_id

noreply at bugs.horde.org noreply at bugs.horde.org
Wed Feb 6 09:52:57 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12016
------------------------------------------------------------------------------
  Ticket             | 12016
  Updated By         | patrick.vangilst at labri.fr
  Summary            | kronolith set wrong type_id
  Queue              | Kronolith
  Version            | 4.0.3
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Rubinsky
------------------------------------------------------------------------------


patrick.vangilst at labri.fr (2013-02-06 09:52) wrote:

I think the problem is that ensureTypes (in  
content/lib/Types/Manager.php) constructs a wrong DB statement:
SELECT type_id, type_name FROM `rampage_types` WHERE type_name IN  
('event','calendar')
should be:
SELECT type_id, type_name FROM `rampage_types` WHERE type_name IN  
(,'calendar','event')

I made a dump of arguments received by ensureTypes($types):
array(2) {
   [0]=>
   string(5) "event"
   [1]=>
   string(8) "calendar"
}

I'm investigating which function calls ensureType whith this arg....  
Please tell me if I'm wrong....








More information about the bugs mailing list