Skip to content

Commit

Permalink
Bug fix to Board Widget to honor Required Columns
Browse files Browse the repository at this point in the history
  • Loading branch information
purtuga committed Apr 26, 2015
1 parent 4e55e15 commit 6bc3ea0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/boardWidget/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ define([
listItems: [], // Array with items from the list.
initDone: false,
formUrls: null, // Object with url's to form. Used by opt.getListFormUrl()
isStateRequired: true,
isStateRequired: false, // SP defaults are for fields to be optional
maxColumnVisible: 10,
showNumberOfColumns: 10, // number of columns shown on the board
/**
Expand Down Expand Up @@ -516,9 +516,9 @@ define([
}

// store if field is required
if ( f.attr("Required") === "FALSE" ) {
if ( f.attr("Required") === "TRUE" ) {

opt.isStateRequired = false;
opt.isStateRequired = true;

}

Expand Down

0 comments on commit 6bc3ea0

Please sign in to comment.