How to save custom fields in a job?

Status
This content is read-only, or is not open for further replies.

Robert9

Guest
offline
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:
$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', $thread);
What I...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom