diff --git a/app/partials/professor/professor_create.html b/app/partials/professor/professor_create.html
index 195eb38..f80281b 100644
--- a/app/partials/professor/professor_create.html
+++ b/app/partials/professor/professor_create.html
@@ -68,8 +68,8 @@
+ ng-pattern="/\d{4}-\d{7}/" maxlength="13"
+ placeholder="0424-1239876"/>
El Formato del Número de Teléfono es incorrecto.
diff --git a/app/partials/professor/professor_list.controller.js b/app/partials/professor/professor_list.controller.js
index 7dd9889..9452554 100644
--- a/app/partials/professor/professor_list.controller.js
+++ b/app/partials/professor/professor_list.controller.js
@@ -102,7 +102,7 @@
};
$scope.ok = function (urlLo) {
- $state.go('ProfessorList');
+ $state.reload();
$scope.modalInstance.dismiss('cancel');
};
diff --git a/app/partials/report/course_assist.controller.js b/app/partials/report/course_assist.controller.js
index 97cf6ce..908430c 100644
--- a/app/partials/report/course_assist.controller.js
+++ b/app/partials/report/course_assist.controller.js
@@ -32,6 +32,7 @@
function (value){
angular.forEach (value.students,
function (valued){
+ vm.lectures = valued.assistance;
angular.forEach (valued.assistanceTotal,
function (valueda){
if (valueda.assistance) {
@@ -41,7 +42,7 @@
}
});
});
- });
+ });
vm.total = vm.positive + vm.negative;
vm.percentage = (vm.positive/vm.total)*100;
},
diff --git a/app/partials/report/section_assist.controller.js b/app/partials/report/section_assist.controller.js
index 567d8b6..a194883 100644
--- a/app/partials/report/section_assist.controller.js
+++ b/app/partials/report/section_assist.controller.js
@@ -30,8 +30,10 @@
angular.forEach (vm.section.students,
function (value){
+ vm.lectures = value.assistance;
angular.forEach (value.assistanceTotal,
function (valued){
+
if (valued.assistance) {
vm.positive++;
} else {