mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Fix resources duplication of 'accessory of' menulist
This commit is contained in:
parent
01773135ea
commit
a9416b2ce9
@ -526,7 +526,6 @@ class resources_ui
|
||||
$content['accessory_of'] = $content['accessory_of'] ? $content['accessory_of'] : $accessory_of;
|
||||
}
|
||||
$search_options = array('accessory_of' => -1);
|
||||
$sel_options['accessory_of'] = array(-1 => lang('none')) + (array)$this->bo->link_query('',$search_options);
|
||||
|
||||
$content['history'] = array(
|
||||
'id' => $res_id,
|
||||
@ -536,6 +535,8 @@ class resources_ui
|
||||
'long_description' => 'html'
|
||||
)
|
||||
);
|
||||
|
||||
$sel_options['accessory_of'] = array(-1 => lang('none')) + (array)$this->bo->link_query('',$search_options);
|
||||
if($res_id) unset($sel_options['accessory_of'][$res_id]);
|
||||
|
||||
// $content['general|page|pictures|links'] = 'resources.edit_tabs.page'; //debug
|
||||
|
@ -12,52 +12,44 @@
|
||||
<rows>
|
||||
<row>
|
||||
<description value="Description (short)"/>
|
||||
<textbox statustext="Short description of resource" id="short_description" size="50" maxlength="100"/>
|
||||
<description/>
|
||||
<textbox statustext="Short description of resource" id="short_description" size="50" maxlength="100" span="2"/>
|
||||
<description value="Short description of resource"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Location"/>
|
||||
<textbox statustext="Location of resource" id="location" size="50" maxlength="100"/>
|
||||
<description/>
|
||||
<textbox statustext="Location of resource" id="location" size="50" maxlength="100" span="2"/>
|
||||
<description value="Where to find this resource?"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Storage information"/>
|
||||
<textbox statustext="Information about storage" id="storage_info" size="50" maxlength="100"/>
|
||||
<description/>
|
||||
<textbox statustext="Information about storage" id="storage_info" size="50" maxlength="100" span="2"/>
|
||||
<description value="Information about storage"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Quantity"/>
|
||||
<textbox statustext="Quantity of resource" id="quantity" size="5" maxlength="10"/>
|
||||
<description/>
|
||||
<textbox statustext="Quantity of resource" id="quantity" size="5" maxlength="10" span="2"/>
|
||||
<description value="Quantity of resource"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Useable"/>
|
||||
<textbox statustext="How many of them are useable?" id="useable" size="5" maxlength="10"/>
|
||||
<description/>
|
||||
<textbox statustext="How many of them are useable?" id="useable" size="5" maxlength="10" span="2"/>
|
||||
<description value="How many of the resources are useable?"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Bookable"/>
|
||||
<checkbox statustext="Is resource bookable?" id="bookable"/>
|
||||
<description/>
|
||||
<checkbox statustext="Is resource bookable?" id="bookable" span="2"/>
|
||||
<description value="Is this resource bookable?"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Accessory of"/>
|
||||
<description value="Accessory sdfsdfof"/>
|
||||
<menulist>
|
||||
<menupopup id="accessory_of" no_lang="1"/>
|
||||
<menupopup id="accessory_of" no_lang="1" span="2"/>
|
||||
</menulist>
|
||||
<description/>
|
||||
<description id="accessory_label"/>
|
||||
</row>
|
||||
<row>
|
||||
<description disabled="true" value="Buyable"/>
|
||||
<checkbox disabled="true" statustext="Is resource buyable?" id="buyable"/>
|
||||
<description/>
|
||||
<checkbox disabled="true" statustext="Is resource buyable?" id="buyable" span="2"/>
|
||||
<description disabled="true" value="Is this resource buyable?"/>
|
||||
</row>
|
||||
<row height="100%">
|
||||
|
Loading…
Reference in New Issue
Block a user