support ORIG. for pre/postModify
This commit is contained in:
parent
0442c9fac5
commit
27dfbab5db
|
@ -3528,6 +3528,12 @@ Run slapindex to rebuild the index.
|
||||||
new value of a modified attribute (e.g. $MOD.telephoneNumber$) for
|
new value of a modified attribute (e.g. $MOD.telephoneNumber$) for
|
||||||
modified accounts</para>
|
modified accounts</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para><emphasis role="bold">$ORIG.<attribute>$:</emphasis> the
|
||||||
|
original value of an attribute (e.g. $ORIG.telephoneNumber$) for
|
||||||
|
modified accounts</para>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
||||||
<para><emphasis role="bold">Output may contain HTML:</emphasis> If your
|
<para><emphasis role="bold">Output may contain HTML:</emphasis> If your
|
||||||
|
|
|
@ -1691,9 +1691,15 @@ class accountContainer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!$this->isNewAccount) {
|
||||||
|
foreach ($this->attributes_orig as $key => $value) {
|
||||||
|
$prePostModifyAttributes['ORIG.' . $key] = $value;
|
||||||
|
}
|
||||||
|
$prePostModifyAttributes['ORIG.dn'][0] = $this->dn_orig;
|
||||||
|
}
|
||||||
$prePostModifyAttributes['dn'][0] = $this->finalDN;
|
$prePostModifyAttributes['dn'][0] = $this->finalDN;
|
||||||
if (!$this->isNewAccount && ($this->finalDN != $this->dn_orig)) {
|
if (!$this->isNewAccount && ($this->finalDN != $this->dn_orig)) {
|
||||||
$prePostModifyAttributes['MOD.dn'] = $this->finalDN;
|
$prePostModifyAttributes['MOD.dn'][0] = $this->finalDN;
|
||||||
}
|
}
|
||||||
logNewMessage(LOG_DEBUG, 'Edit page pre/postModify attributes: ' . print_r($prePostModifyAttributes, true));
|
logNewMessage(LOG_DEBUG, 'Edit page pre/postModify attributes: ' . print_r($prePostModifyAttributes, true));
|
||||||
$preModifyOk = true;
|
$preModifyOk = true;
|
||||||
|
|
Loading…
Reference in New Issue