dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
38d7a2a
)
When cloning TextContent, include model
author
Yuri Astrakhan
<yurik@wikimedia.org>
Tue, 16 Sep 2014 06:58:36 +0000
(
02:58
-0400)
committer
Yuri Astrakhan
<yurik@wikimedia.org>
Tue, 16 Sep 2014 06:58:36 +0000
(
02:58
-0400)
The model id should be preserved when cloning values
on save.
Change-Id: I397d36af30cf1401023b761e8c41f0dc83e76c12
includes/content/TextContent.php
patch
|
blob
|
history
diff --git
a/includes/content/TextContent.php
b/includes/content/TextContent.php
index
d292880
..
c479f20
100644
(file)
--- a/
includes/content/TextContent.php
+++ b/
includes/content/TextContent.php
@@
-160,7
+160,7
@@
class TextContent extends AbstractContent {
$text = $this->getNativeData();
$pst = rtrim( $text );
- return ( $text === $pst ) ? $this : new static( $pst );
+ return ( $text === $pst ) ? $this : new static( $pst
, $this->getModel()
);
}
/**