[OGo-Bugs][Bug 932] Notification mail subject always states "job created"

bugs@opengroupware.org bugs@opengroupware.org
Mon, 10 Sep 2007 13:16:28 +0200 (CEST)


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug
report.

http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=932





------- Additional Comments From awilliam@whitemice.org  2007-09-10 13:16 -------
Seems simple enough:
- (NSString *)emailSubjectForJobEO:(id)_job {
  NSString *subject;

  if ([[_job valueForKey:@"name"] isEqualToString:@"00_created"])
    subject = [NSString stringWithFormat:@"%@: '%@' %@ %@",
                        [[self labels] valueForKey:@"job"],
                        [_job valueForKey:@"name"],
                        [[self labels] valueForKey:@"createLabel"],
                        [[[self session] activeAccount] valueForKey:@"login"]];
  else
    subject = [NSString stringWithFormat:@"%@: '%@' %@ %@",
                        [[self labels] valueForKey:@"job"],
                        [_job valueForKey:@"name"],
                        [[self labels] valueForKey:@"editedLabel"],
                        [[[self session] activeAccount] valueForKey:@"login"]];
  return subject;
}

Requires creation of an editedLabel in the strings,  for English -
editedLabel       = "edited by"

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.