mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 08:12:26 +02:00
Migrate datamodel
This commit is contained in:
@@ -1587,15 +1587,20 @@ public function PrefillSearchForm(&$aContextParam)
|
||||
<duplicates>true</duplicates>
|
||||
</field>
|
||||
</fields>
|
||||
<event_listeners>
|
||||
<listener id="OnCheckToWrite">
|
||||
<event>EVENT_SERVICE_DB_CHECK_TO_WRITE</event>
|
||||
<callback>OnCheckToWrite</callback>
|
||||
<priority>0</priority>
|
||||
</listener>
|
||||
</event_listeners>
|
||||
<methods>
|
||||
<method id="DoCheckToWrite">
|
||||
<method id="OnCheckToWrite">
|
||||
<static>false</static>
|
||||
<access>public</access>
|
||||
<code><![CDATA[
|
||||
public function DoCheckToWrite()
|
||||
public function OnCheckToWrite(Combodo\iTop\Service\EventData $oEventData)
|
||||
{
|
||||
parent::DoCheckToWrite();
|
||||
|
||||
$aCustomerContracts = $this->Get("customercontracts_list");
|
||||
foreach ($aCustomerContracts as $sAttCode => $oCustomerContracts)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user