Our users have requested the facility to "copy" a calendar event.
This would be via the means of a "Copy" button when previewing an event, on clicking the button you would then see the event details and be able to change any of them before clicking "Save".
Where upon a new event will be created with these details.
Edit: templates/tiki-calendar_edit_item.tpl
Add the following line directly after the line for the "Edit/Delete event" this ensures the button is only shown at the correct time
{button href="tiki-calendar_edit_item.php?calitemId=$id&duplicate=y" _text="{tr}Copy event{/tr}"}
It appears a $_REQUEST function already exists for duplicating calendar events, and I cant see this called from anywhere else. However the function does have an interesting bug where it copies the event before allowing you to edit, so when you do click "SAVE" then two events are created.
To resolve this bug, Edit: tiki-calendar_edit_item.php
Find the following code (within the "duplicate" section) and comment it out.
// $calendarlib->set_item($user,0,$calitem);
Our site also has a modification to allow participants to sign up to calendar events, it is also usefull to blank out the participants on a duplicated event.
Adding the following code within the "duplicate" section after the commented line above removes any existing participants from the copied event.
$calitem['participants'] = array();
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |