1
Vote

Term widget not possible to select no term

description

When you create a term widget (in 1.x) you can't just show all the terms by selected taxonomy.
The reason for this is that the model requires an id higher then 0 but the "none" option for term selection has an id -1

Model:

[Required, Range(0, int.MaxValue, ErrorMessage = "You must select a term")]
public int SelectedTermId { get; set; }

comments

agriffard wrote Jul 23, 2013 at 10:54 AM

This widget is not used anymore?
To replace by a projection.