rem: result.id = this.id; 
add: result.id = this._id; 
context: function evalStory(param, modifier) {   // collect content   var content = extractContent(param, this.content.getAll());   // if all story parts are null, return with error-message   if (!content.exists)      throw new Exception("textMissing");   // check if the createtime is set in param   if (param.createtime) {      try {         var ctime = param.createtime.toDate("yyyy-MM-dd HH:mm");      } catch (err) {         throw new Exception("timestampParse", param.createtime);      }   }   // check name of topic (if specified)   var topicName = null;   if (param.topic) {      if (!param.topic.isURL())         throw new Exception("topicNoSpecialChars");      topicName = param.topic;   } else if (param.addToTopic)      topicName = param.addToTopic;   // store the new values of the story   if (param.publish) {      var newStatus = param.addToFront ? 2 : 1;      if (!this.online || content.isMajorUpdate)         this.site.lastupdate = new Date();      this.online = newStatus;   } else      this.online = 0;   if (content.isMajorUpdate)      this.modifytime = new Date();   this.content.setAll(content.value);   this.topic = topicName;   // let's keep the title property   this.title = content.value.title;   // re-create day of story with respect to site-timezone   if (ctime && ctime != this.createtime) {      this.createtime = ctime;      this.day = ctime.format("yyyyMMdd", this.site.getLocale(), this.site.getTimeZone());   }   if (modifier == this.creator)      this.editableby = !isNaN(param.editableby) ? parseInt(param.editableby, 10) : null;   this.discussions = param.discussions ? 1 : 0;   this.modifier = modifier;   this.ipaddress = param.http_remotehost;   // send e-mail notification   if (this.site.isNotificationEnabled() && newStatus != 0) {      // status changes from offline to online      // (this is bad because somebody could send a bunch      // of e-mails simply by toggling the online status.)      //if (this.online == 0)      //   this.sendNotification("story", "create");      // major update of an already online story      if (this.online != 0 && content.isMajorUpdate)         this.site.sendNotification("update", this);   }   this.cache.modifytime = new Date();   var result = new Message("storyUpdate");   result.url = this.online > 0 ? this.href() : this.site.stories.href();   result.id = this.id;   return result;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/4d2d82ef63105b7e0b947d1e3e0b4834a0c14c6d/objectFunctions.js/buggy/code/Story/objectFunctions.js