浏览代码

Reset reject reason when approved

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2534 a333f486-631f-4898-b8df-5754b55c2be0
etaloc 12 年之前
父节点
当前提交
23b9f10309
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml

+ 13 - 0
datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml

@@ -312,6 +312,9 @@
                   <action>
                     <verb>SetApprovalDate</verb>
                   </action>
+                  <action>
+                    <verb>ResetRejectReason</verb>
+                  </action>
                 </actions>
               </transition>
             </transitions>
@@ -535,6 +538,16 @@
 		return true;
 	}]]></code>
         </method>
+        <method id="ResetRejectReason">
+          <static>false</static>
+          <access>public</access>
+          <type>LifecycleAction</type>
+          <code><![CDATA[	public function ResetRejectReason($sStimulusCode)
+	{
+		$this->Set('reject_reason', '');
+		return true;
+	}]]></code>
+        </method>
         <method id="SetClosureDate">
           <static>false</static>
           <access>public</access>