6.0.0-beta1
7/20/25

[#12034] deleting resource group fails
Summary deleting resource group fails
Queue Kronolith
Queue Version 4.0.4
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester wbreyha (at) gmx (dot) net
Created 02/11/2013 (4542 days ago)
Due
Updated 02/16/2013 (4537 days ago)
Assigned 02/11/2013 (4542 days ago)
Resolved 02/16/2013 (4537 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/16/2013 06:14:27 PM Michael Rubinsky Comment #4
State ⇒ Resolved
Version ⇒ 4.0.4
Reply to this comment
Kronolith 4.0.5
02/16/2013 06:13:33 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit fd15579c03e80c58cbc504f5aece6d931ce06c27
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sat Feb 16 13:08:27 2013 -0500

     Improve/Fix resource event deletion after removing the resource.

     Bug: 12034

  kronolith/lib/Driver/Resource/Sql.php |   34 ++++++++++++++++++++++----------
  1 files changed, 23 insertions(+), 11 deletions(-)

http://git.horde.org/horde-git/-/commit/fd15579c03e80c58cbc504f5aece6d931ce06c27
02/11/2013 05:39:51 PM Jan Schneider Assigned to Michael Rubinsky
State ⇒ Assigned
 
02/11/2013 02:17:24 PM wbreyha (at) gmx (dot) net Comment #2 Reply to this comment
Sorry, copy/paste fail. the correct codeline is:
kronolith/lib/Driver/Resource/Sql.php:305 not 30
02/11/2013 02:14:22 PM wbreyha (at) gmx (dot) net Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ deleting resource group fails
Queue ⇒ Kronolith
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
After creating a new resource group I tried to delete it. Horde failed 
and complained about
"Unknown column 'calender_id' in WHERE clause: DELETE FROM 
'kronolith_resources' WHERE calender_id = "xxxx".

Seems like
kronolith/lib/Driver/Resource/Sql.php:30
causes it.

I asked about it on irc#horde. the messagelog:
<MASHtm> i have problems deleting resource groups in horde5. it 
complains about a missing column calender_id in kronolith_resources
<MASHtm> looking at kronolith/lib/Driver/Resource/Sql.php:305 i see 
"calender_id" and i think it should be "resource_id" instead
<yunosh> not quite, that's what we do in the 2nd query. i guess the 
first query is supposed to be run on the kronolith_events table 
instead. please create a bug ticket
<MASHtm> ah, ok;-) is it possible that some migrated data coming the 
long way from horde3->4->5 causes this?
<yunosh> no, it's a bug
<MASHtm> ok, will file a bug then. thx;-)

Saved Queries