File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function actionCreate()
92
92
$ model ->banner ->saveAs (Yii::getAlias ('@frontend/web ' ) . DIRECTORY_SEPARATOR . $ bannerName );
93
93
$ model ->banner = $ bannerName ;
94
94
}
95
- $ model ->amount *= 100 ;
95
+ $ model ->donated *= 100 ;
96
96
$ model ->save (false );
97
97
98
98
return $ this ->redirect (['view ' , 'id ' => $ model ->id ]);
@@ -120,7 +120,7 @@ public function actionUpdate($id)
120
120
121
121
$ model = $ this ->findModel ($ id );
122
122
$ oldBanner = $ model ->banner ;
123
- $ model ->amount = $ model ->amount / 100 ;
123
+ $ model ->donated = $ model ->donated / 100 ;
124
124
125
125
if ($ model ->load (Yii::$ app ->request ->post ())) {
126
126
$ model ->banner = UploadedFile::getInstance ($ model , 'banner ' );
@@ -132,7 +132,7 @@ public function actionUpdate($id)
132
132
} else {
133
133
$ model ->banner = $ oldBanner ;
134
134
}
135
- $ model ->amount = $ model ->amount * 100 ;
135
+ $ model ->donated = $ model ->donated * 100 ;
136
136
$ model ->save (false );
137
137
return $ this ->redirect (['view ' , 'id ' => $ model ->id ]);
138
138
} else {
You can’t perform that action at this time.
0 commit comments