Changeset 12857
- Timestamp:
- 10/17/07 15:30:33 (1 year ago)
- Files:
-
- trunk/midcom/midcom.admin.user/plugin.php (modified) (1 diff)
- trunk/midcom/midgard.admin.asgard/reflector_tree.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.admin.user/plugin.php
r12849 r12857 99 99 ), 100 100 /** 101 * List folders group has privileges to 102 * 103 * Match /user-editor/group/folders/<guid>/ 104 */ 105 'group_folders' => array 106 ( 107 'handler' => array ('midcom_admin_user_handler_group_permissions', 'folders'), 108 'fixed_args' => array ('group', 'folders'), 109 'variable_args' => 1, 110 ), 111 /** 101 112 * Create new user 102 113 * trunk/midcom/midgard.admin.asgard/reflector_tree.php
r11131 r12857 455 455 * @access private 456 456 */ 457 function &_child_objects_type_qb(&$schema_type, &$for_object, &$deleted)457 function _child_objects_type_qb(&$schema_type, &$for_object, &$deleted) 458 458 { 459 459 debug_push_class(__CLASS__, __FUNCTION__); … … 523 523 $uptype = $ref->get_midgard_type($upfield); 524 524 $uptarget = $ref->get_link_target($upfield); 525 if (!isset($for_object->$uptarget)) 526 { 527 $qb->end_group(); 528 return false; 529 } 525 530 switch ($uptype) 526 531 { … … 536 541 debug_add("Do not know how to handle upfield '{$upfield}' has type {$uptype}", MIDCOM_LOG_ERROR); 537 542 debug_pop(); 543 $qb->end_group(); 538 544 return false; 539 545 } … … 552 558 case MGD_TYPE_INT: 553 559 case MGD_TYPE_UINT: 554 $qb->add_constraint($parentfield, '=', (int)$for_object->$parenttarget);560 $qb->add_constraint($parentfield, '=', (int)$for_object->$parenttarget); 555 561 break; 556 562 default: 557 563 debug_add("Do not know how to handle parentfield '{$parentfield}' has type {$parenttype}", MIDCOM_LOG_ERROR); 558 564 debug_pop(); 565 $qb->end_group(); 559 566 return false; 560 567 }
