Donate Share

WebCalendar

Tracker: Patches

5 Patch to no events shown on new database - ID: 407090
Last Update: Comment added ( cknudsen )

In edit_entry.php, the if statement should be greater
than or equal to. If it isn't, then the
webcal_entry_user entries is not inserted. The events
do not show on the calendar.

This problem only occurs if the database has a single
user, such as when a new database is installed with
only "admin" as the user.


--- /tmp/WebCalendar-0.9.26/edit_entry.php Fri Dec
29 14:21:53 2000
+++ edit_entry.php Thu Mar 8 11:41:45 2001
@@ -273,7 +273,7 @@
$size = 15;
else if ( $size > 5 )
$size = 5;
- if ( $size > 1 ) {
+ if ( $size >= 1 ) {
print "<TR><TD
VALIGN=\"top\"><B>" .
translate("Participants") .
":</B></TD>";
print "<TD><SELECT NAME=\"participants[]\"
SIZE=$size MULTIPLE>$users\n";


Douglas Spencer ( forhire ) - 2001-03-08 17:54

5

Closed

Accepted

Craig Knudsen

None

None

Public


Comment ( 1 )

Date: 2001-04-19 11:18
Sender: cknudsenProject AdminAccepting Donations

Logged In: YES
user_id=14386

Actually, if size=1, that means the system was setup
properly since that should only be the case in
single_user_mode. But, we should handle this case since it
seems to be a problem for some.


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2001-04-19 11:18 cknudsen
resolution_id None 2001-04-19 11:18 cknudsen
assigned_to nobody 2001-04-19 11:18 cknudsen
close_date - 2001-04-19 11:18 cknudsen