Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce
Commits
13a121cc
Commit
13a121cc
authored
Aug 11, 2015
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #270 from edx/clintonb/course-model-fix
Fixed bug on Course model
parents
e295b67d
d8dd5b47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
6 deletions
+1
-6
ecommerce/static/js/models/course_model.js
+1
-2
ecommerce/static/js/models/course_seats/course_seat.js
+0
-4
No files found.
ecommerce/static/js/models/course_model.js
View file @
13a121cc
...
...
@@ -160,10 +160,9 @@ define([
products
=
this
.
get
(
'products'
),
seat
=
products
.
find
(
function
(
product
)
{
// Filter out parent products since there is no need to display or modify.
return
(
product
instanceof
CourseSeat
)
&&
(
product
.
seatType
===
seatType
);
return
(
product
instanceof
CourseSeat
)
&&
(
product
.
getSeatType
()
===
seatType
);
});
// Do NOT create new audit seats
if
(
!
seat
)
{
seatClass
=
CourseUtils
.
getCourseSeatModel
(
seatType
);
/*jshint newcap: false */
...
...
ecommerce/static/js/models/course_seats/course_seat.js
View file @
13a121cc
...
...
@@ -14,10 +14,6 @@ define([
},
validation
:
{
// TODO Determine how to set this to the model's default.
//certificate_type: {
// required: true
//},
price
:
{
required
:
true
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment