mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
check module id ruleset add
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12542 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0dd2142950
commit
6ebdbdda08
3 changed files with 13 additions and 2 deletions
|
|
@ -23,7 +23,7 @@
|
|||
<action name="procMenuAdminUpdate" type="controller" standalone="true" ruleset="updateMenuTitle" />
|
||||
<action name="procMenuAdminDelete" type="controller" standalone="true" />
|
||||
<action name="procMenuAdminInsertItem" type="controller" standalone="true" ruleset="insertMenuItem" />
|
||||
<action name="procMenuAdminUpdateItem" type="controller" standalone="true" />
|
||||
<action name="procMenuAdminUpdateItem" type="controller" standalone="true" ruleset="updateMenuItem" />
|
||||
<action name="procMenuAdminButtonUpload" type="controller" standalone="true" />
|
||||
<action name="procMenuAdminInsertItemForAdminMenu" type="controller" standalone="true" />
|
||||
<action name="procMenuAdminDeleteItem" type="controller" standalone="true" />
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ruleset version="1.5.0">
|
||||
<customrules>
|
||||
<rule name="mid" type="regex" test="/^[a-z][a-z0-9_]+$/" />
|
||||
</customrules>
|
||||
<fields>
|
||||
<field name="menu_name" required="true" />
|
||||
<field name="module_id" length="0:40" />
|
||||
<field name="module_id" length="0:40" rule="mid" />
|
||||
</fields>
|
||||
</ruleset>
|
||||
|
|
|
|||
10
modules/menu/ruleset/updateMenuItem.xml
Normal file
10
modules/menu/ruleset/updateMenuItem.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ruleset version="1.5.0">
|
||||
<customrules>
|
||||
<rule name="mid" type="regex" test="/^[a-z][a-z0-9_]+$/" />
|
||||
</customrules>
|
||||
<fields>
|
||||
<field name="menu_name" required="true" />
|
||||
<field name="module_id" length="0:40" rule="mid" />
|
||||
</fields>
|
||||
</ruleset>
|
||||
Loading…
Add table
Add a link
Reference in a new issue