<commit_before><?php
/**
 * @version     $Id$
 * @package     Nooku_Server
 * @subpackage  Articles
 * @copyright   Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
?>

<?= @helper('listbox.radiolist', array(
	'list'      => array((object) array('title' => 'Uncategorized', 'id' => 0)),
	'name'      => 'category_id',
    'text'      => 'title',
	'selected'  => $article->category_id,
    'translate' => true));
?>

<? foreach($categories as $category) : ?>
	<span class="section"><?= @escape($category->title); ?></span><br />
	<? if($category->hasChildren()) : ?>
		<?= @helper('listbox.radiolist', array(
				'list'     => $category->getChildren(),
				'selected' => $article->category_id,
				'name'     => 'category_id',
		        'text'     => 'title',
			));
		?>
	<? endif; ?>
<? endforeach ?><commit_msg>re #229 Fixed category assignment in com_articles after column renaming in the database<commit_after><?php
/**
 * @version     $Id$
 * @package     Nooku_Server
 * @subpackage  Articles
 * @copyright   Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */
?>

<?= @helper('listbox.radiolist', array(
	'list'      => array((object) array('title' => 'Uncategorized', 'id' => 0)),
	'name'      => 'categories_category_id',
    'text'      => 'title',
	'selected'  => $article->categories_category_id,
    'translate' => true));
?>

<? foreach($categories as $category) : ?>
	<span class="section"><?= @escape($category->title); ?></span><br />
	<? if($category->hasChildren()) : ?>
		<?= @helper('listbox.radiolist', array(
				'list'     => $category->getChildren(),
				'selected' => $article->categories_category_id,
				'name'     => 'categories_category_id',
		        'text'     => 'title',
			));
		?>
	<? endif; ?>
<? endforeach ?>
{'fraction_non_alphanumeric': 0.21435643564356435, 'fraction_numerical': 0.011386138613861386, 'mean_word_length': 3.346236559139785, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2773188', 'n_tokens_mistral': 737, 'n_tokens_neox': 682, 'n_words': 130}