Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


[Solved] Category is blank after upgrade Vanilla Vanilla 2.0.18

saturngodsaturngod New
edited November 2011 in Questions
I can't choose the category after upgrading 2.0.18

image

Answers

  • I use custom form in

    vanilla/view/post/discussion.php

    code is

    echo $this->Form->Label('Discussion Title', 'Name');
    echo $this->Form->TextBox('Name', array('maxlength' => 100));
    if ($this->ShowCategorySelector === TRUE) {
    echo '';
    echo $this->Form->Label('Category', 'CategoryID');
    echo $this->Form->DropDown('CategoryID', $this->CategoryData, array('TextField' => 'Name', 'ValueField' => 'CategoryID'));
    echo '';
    }
  • fixed

    echo $this->Form->CategoryDropDown('CategoryID', array('Value' => GetValue('CategoryID', $this->Category)));
    Shmizzle
Sign In or Register to comment.