Ok, i'm attempting to import data from my old ticket system.
i've got everything down as far as i can, it creates users, creates tickets, inserts the thread entries to create the conversation.
however, the ticket viewing page is not showing the 'title' and 'priority'
I've traced the issue to include\class.ticket.php Line 183 (function loadDynamicData)
function loadDynamicData($force=false) {
if (!isset($this->_answers) || $force) {
$this->_answers = array();
foreach (DynamicFormEntryAnswer::objects()
->filter(array(
'entry__object_id' => $this->getId(),
'entry__object_type' => 'T'
)) as $answer
) {
$tag = mb_strtolower($answer->field->name)
?: 'field.' . $answer->field->id;
$this->_answers[$tag] = $answer;
}
}
echo "<br/><br/><br/> _answers = ".print_r($this->_answers)."<br/><br/><br/>";
return $this->_answers;
}
Now, as you can see i added a print line, on regular tickets, this works fine and output a huge array. on the tickets i have imported, i get a blank array.
My PHP knowledge runs out at the 'DynamicFormEntryAnswer::objects' statement.
I'm lost of where to go from here.
I have compared MySQL tables of my tickets and other tickets and i cant find any issues, except maybe the flags where i dont quite get yet, i have kinda been copying and hoping on these.
any thoughts?