Ilkka Rautiainen

Results 2 issues of Ilkka Rautiainen

Because of this line: https://github.com/cdaguerre/php-trello-api/blob/b1205d9ac9b24df03c2db5aa9a8c7418d28c0b78/lib/Trello/Model/Checklist.php#L245 `$this->data['checkItems'][$key]['state'] = in_array($item['state'], array(true, 'complete', 'true'));` Should be: `$this->data['checkItems'][$key]['state'] = in_array($item['state'], array(true, 'complete', 'true'), true);` The problem is that both 'incomplete' == true and 'complete'...

bug

The array keys should be 'pos' and not 'position'. https://github.com/cdaguerre/php-trello-api/blob/b1205d9ac9b24df03c2db5aa9a8c7418d28c0b78/lib/Trello/Model/Checklist.php#L205 https://github.com/cdaguerre/php-trello-api/blob/b1205d9ac9b24df03c2db5aa9a8c7418d28c0b78/lib/Trello/Model/Checklist.php#L211 These make item position setting not work.

bug