Fix calendar-query handling of properties.

This commit is contained in:
Andrew McMillan 2011-08-24 20:38:32 +12:00
parent a8024d2633
commit b901981c7c
2 changed files with 5 additions and 2 deletions

View File

@ -26,10 +26,10 @@ function check_for_expansion( $calendar_data_node ) {
*/
$qry_content = $xmltree->GetContent('urn:ietf:params:xml:ns:caldav:calendar-query');
$properties = array();
while (list($idx, $qqq) = each($qry_content))
{
$proptype = $qry_content[$idx]->GetTag();
$properties = array();
switch( $proptype ) {
case 'DAV::prop':
$qry_props = $xmltree->GetPath('/urn:ietf:params:xml:ns:caldav:calendar-query/'.$proptype.'/*');

View File

@ -317,7 +317,9 @@ label.privilege {
<tr> <th class="right">$prompt_collection_id:</th> <td class="left">$value_id</td> </tr>
<tr> <th class="right">$prompt_dav_name:</th> <td class="left">$value_dav_name</td> </tr>
<tr> <th class="right">$prompt_entries:</th> <td class="left">$entries</td> </tr>
<tr> <th class="right">$prompt_load_file:</th> <td class="left">##ics_file.file.60##</td> </tr>
<tr> <th class="right">$prompt_load_file:</th> <td class="left">##ics_file.file.60##
 <label class="privilege" title="Should the uploaded entries be appended to the calendar"><input type="checkbox" name="mode" value="append">Append</label>
</td> </tr>
<tr> <th class="right">$prompt_displayname:</th> <td class="left">##dav_displayname.input.50##</td> </tr>
<tr> <th class="right">$prompt_public:</th> <td class="left">##publicly_readable.checkbox##</td> </tr>
<tr> <th class="right">$prompt_calendar:</th> <td class="left">##is_calendar.checkbox##</td> </tr>
@ -352,6 +354,7 @@ toggle_visible('fld_use_default_privs','!privileges_settings');
EOTEMPLATE;
$editor->SetTemplate( $template );
$page_elements[] = $editor;