1
0
Fork 0

(svn r25519) -Fix [FS#5614] (r25342): Select page to update by its id and not the page id

release/1.4
zuu 2013-06-29 14:54:07 +00:00
parent 094ac8c441
commit be4451d40f
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@
EnforcePrecondition(false, type != ::SPET_GOAL || !(p->company == INVALID_COMPANY && Goal::Get(reference)->company != INVALID_COMPANY));
return ScriptObject::DoCommand(type == ::SPET_LOCATION ? reference : 0,
pe->page,
story_page_element_id,
type == ::SPET_GOAL ? reference : 0,
CMD_UPDATE_STORY_PAGE_ELEMENT,
type == ::SPET_TEXT || type == ::SPET_LOCATION ? text->GetEncodedText() : NULL,