How to save custom fields in a job?

  • Thread starter Thread starter Robert9
  • Start date Start date

Robert9

Guest
Member
How to save custom fields in a job?

In my job I have a resource and a thread,
i also have custom_fields from resource and thread

But I have no idea how to save this.



Code:

Code:

Code:
$threadEditor = $this->service('XF:Thread\Editor', $thread);
$threadEditor->setCustomFields($threadFields);
$threadEditor->save();
does not work,
Code:

Call to undefined method ...\Job\Import::service() in src/addons/.../Job/Import.php

Why many classes can use $this->service('XF:Thread\Editor'...

Read more

Continue reading...
 
Top