Permalink
Browse files

升级到2.3.1后portal的profile页面报错:

Unknown attribute location_id from class Person.
原因是自定义Person类的时候把location_id删除了.
因此需要修改itop-tickets中的module_design关于location_id的定义
  • Loading branch information...
1 parent 877bb4c commit 9058dd6e7e2c2d36e821cc5fef397ae297775cb6 @annProg committed Aug 28, 2016
Showing with 31 additions and 1 deletion.
  1. +29 −0 custom-mod/datamodel.custom-mod.xml
  2. +2 −1 custom-mod/module.custom-mod.php
@@ -28,4 +28,33 @@
<profiles>
</profiles>
</user_rights>
+ <module_designs>
+ <!--删除location_id-->
+ <module_design id="itop-portal" xsi:type="portal">
+ <bricks>
+ <brick id="user-profile" xsi:type="Combodo\iTop\Portal\Brick\UserProfileBrick">
+ <form>
+ <twig _delta="redefine">
+ <!-- data-field-id attribute must be an attribute code of the class -->
+ <!-- data-field-flags attribute contains flags among read_only/hidden/mandatory/must_prompt/must_chan ge -->
+ <div class="form_field" data-field-id="first_name" data-field-flags="read_only">
+ </div>
+ <div class="form_field" data-field-id="name" data-field-flags="read_only">
+ </div>
+ <div class="form_field" data-field-id="org_id" data-field-flags="read_only">
+ </div>
+ <div class="form_field" data-field-id="email" data-field-flags="read_only">
+ </div>
+ <div class="form_field" data-field-id="phone">
+ </div>
+ <div class="form_field" data-field-id="function">
+ </div>
+ <div class="form_field" data-field-id="manager_id" data-field-flags="read_only">
+ </div>
+ </twig>
+ </form>
+ </brick>
+ </bricks>
+ </module_design>
+ </module_designs>
</itop_design>
@@ -15,7 +15,8 @@
// Setup
//
'dependencies' => array(
- 'itop-request-mgmt-itil/2.2.0'
+ 'itop-request-mgmt-itil/2.2.0',
+ 'itop-tickets/2.2.0'
),
'mandatory' => false,
'visible' => true,

0 comments on commit 9058dd6

Please sign in to comment.