mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: #3204 - Broken link tracking is broken (ajshort)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67605 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
31a90edd9a
commit
bc1235be3f
@ -154,7 +154,7 @@ class HtmlEditorField extends TextareaField {
|
||||
|
||||
$fieldName = $this->name;
|
||||
if($record->ID && $record->hasMethod('LinkTracking') && $linkTracking = $record->LinkTracking()) {
|
||||
$linkTracking->removeByFilter("FieldName = '$fieldName'");
|
||||
$linkTracking->removeByFilter("\"FieldName\" = '$fieldName' AND \"SiteTreeID\" = $record->ID");
|
||||
|
||||
if(isset($linkedPages)) foreach($linkedPages as $item) {
|
||||
$linkTracking->add($item, array("FieldName" => $fieldName));
|
||||
@ -570,4 +570,4 @@ class HtmlEditorField_dropdown extends HtmlEditorField_control {
|
||||
class HtmlEditorField_break extends HtmlEditorField_control {
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user