New Blogpost and made BlogPost/ControllerID non-required
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								www/data/blog/Rapscript/logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								www/data/blog/Rapscript/logo.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 13 KiB | 
							
								
								
									
										
											BIN
										
									
								
								www/data/blog/Rapscript/preview.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								www/data/blog/Rapscript/preview.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 128 KiB | 
| @@ -167,7 +167,7 @@ class BlogPostController extends MSController | |||||||
| 		); | 		); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public function actionAjaxMarkdownPreview() | 	public function actionAjaxMarkdownPreview() //TODO-MS: BUG !! Can't preview/create blogposts that contain links (only on server ??) | ||||||
| 	{ | 	{ | ||||||
| 		if(Yii::app()->request->isAjaxRequest) | 		if(Yii::app()->request->isAjaxRequest) | ||||||
| 		{ | 		{ | ||||||
|   | |||||||
| @@ -30,7 +30,7 @@ class BlogPost extends CActiveRecord | |||||||
| 		// NOTE: you should only define rules for those attributes that | 		// NOTE: you should only define rules for those attributes that | ||||||
| 		// will receive user inputs. | 		// will receive user inputs. | ||||||
| 		return array( | 		return array( | ||||||
| 			array('Date, Title, Content, ControllerID, Visible, Enabled', 'required'), | 			array('Date, Title, Content, Visible, Enabled', 'required'), | ||||||
| 			array('Visible, Enabled', 'numerical', 'integerOnly'=>true), | 			array('Visible, Enabled', 'numerical', 'integerOnly'=>true), | ||||||
|  |  | ||||||
| 			array('ID, Date, Title, Content, ControllerID, Visible, Enabled', 'safe', 'on'=>'search'), | 			array('ID, Date, Title, Content, ControllerID, Visible, Enabled', 'safe', 'on'=>'search'), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user