重现步骤

[步骤]

1、标题重复报错


{
  "error_message": "title is exists",
  "error_code": "DATA_ERROR"
}

2、Guides中content为空报错


{
  "error_message": "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content' cannot be null (SQL: insert into `unit_guides` (`img_url`, `content`, `unit_id`, `updated_at`, `created_at`) values (http://math-concept-dev.liangzhicn.com/uploads/images/ph3DkNU8HcWi1i4rJRelaHkhecEMZjlBCRqW1GYc.jpg, ?, 23, 2022-06-07 11:35:09, 2022-06-07 11:35:09))",
  "error_code": "23000"
}

[结果]

1、标题允许重复;包括题目,单元-讲解/做题,课程,均无此限制

2、Guides的content不是必填项,应允许为空,请参考禅道https://zentao.liangzhicn.com/zentao/story-view-1735.html

[期望]


历史记录  
  1. 2022-06-07 11:46:12, 由 胡明华 创建。
  2. 2022-06-07 11:49:01, 由 胡明华 编辑。
    修改了 所属计划,旧值为 "0",新值为 "43"。
    修改了 重现步骤,区别为:
    018- 2、Guides的content不是必填项,应允许为空,请参考禅道
    018+ 2、Guides的content不是必填项,应允许为空,请参考禅道https://zentao.liangzhicn.com/zentao/story-view-1735.html
    018- <p>2、Guides的content不是必填项,应允许为空,请参考禅道</p>
    018+ <p>2、Guides的content不是必填项,应允许为空,请参考禅道https://zentao.liangzhicn.com/zentao/story-view-1735.html</p>
  3. 2022-06-07 11:51:07, 由 胡明华 编辑。
    修改了 重现步骤,区别为:
    003-
    003+
    004- {
    004+ {
    005- "error_message": "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content' cannot be null (SQL: insert into `unit_guides` (`img_url`, `content`, `unit_id`, `updated_at`, `created_at`) values (http://math-concept-dev.liangzhicn.com/uploads/images/UqFxs3x8vGmGjTlj1cUzmxaP8ptUea1nqVcSOVmB.jpg, ?, 22, 2022-06-07 11:22:26, 2022-06-07 11:22:26))",
    005+ "error_message": "title is exists",
    006- "error_code": "23000"
    006+ "error_code": "DATA_ERROR"
    008- 2、Guides中content为空报错
    008+
    009-
    009+ 2、Guides中content为空报错
    003- <p><br /></p>
    003+ <p>
    004- <pre>{
    004+ </p><pre>{
    005- "error_message": "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content' cannot be null (SQL: insert into `unit_guides` (`img_url`, `content`, `unit_id`, `updated_at`, `created_at`) values (http://math-concept-dev.liangzhicn.com/uploads/images/UqFxs3x8vGmGjTlj1cUzmxaP8ptUea1nqVcSOVmB.jpg, ?, 22, 2022-06-07 11:22:26, 2022-06-07 11:22:26))",
    005+ "error_message": "title is exists",
    006- "error_code": "23000"
    006+ "error_code": "DATA_ERROR"
    008- 2、Guides中content为空报错
    008+
    009- <p><br /></p>
    009+ <p><span>2、Guides中content为空报错</span></p>
  4. 2022-06-07 14:10:44, 由 胡明华 编辑。
    修改了 Bug标题 ,区别为:
    001- 【讲解单元】标题允许重复;视频及Guides中的content不是必填项
    001+ 【新增讲解单元】标题允许重复;视频及Guides中的content不是必填项
    001- 【讲解单元】标题允许重复;视频及Guides中的content不是必填项
    001+ 【新增讲解单元】标题允许重复;视频及Guides中的content不是必填项
    修改了 重现步骤,区别为:
    003-
    003+
    004- {
    004+ {
    008-
    008+ 2、Guides中content为空报错
    009- 2、Guides中content为空报错
    009+
    010-
    010+
    011-
    011+ {
    012- {
    012+ "error_message": "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content' cannot be null (SQL: insert into `unit_guides` (`img_url`, `content`, `unit_id`, `updated_at`, `created_at`) values (http://math-concept-dev.liangzhicn.com/uploads/images/ph3DkNU8HcWi1i4rJRelaHkhecEMZjlBCRqW1GYc.jpg, ?, 23, 2022-06-07 11:35:09, 2022-06-07 11:35:09))",
    013- "error_message": "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content' cannot be null (SQL: insert into `unit_guides` (`img_url`, `content`, `unit_id`, `updated_at`, `created_at`) values (http://math-concept-dev.liangzhicn.com/uploads/images/ph3DkNU8HcWi1i4rJRelaHkhecEMZjlBCRqW1GYc.jpg, ?, 23, 2022-06-07 11:35:09, 2022-06-07 11:35:09))",
    013+ "error_code": "23000"
    014- "error_code": "23000"
    014+ }
    015- }
    015+ [结果]
    016- [结果]
    016+ 1、标题允许重复;包括题目,单元-讲解/做题,课程,均无此限制
    017- 1、标题允许重复;包括题目,单元-讲解/做题,课程,均无此限制
    017+ 2、Guides的content不是必填项,应允许为空,请参考禅道https://zentao.liangzhicn.com/zentao/story-view-1735.html
    018- 2、Guides的content不是必填项,应允许为空,请参考禅道https://zentao.liangzhicn.com/zentao/story-view-1735.html
    018+ [期望]
    019- [期望]
    019+
    020-
    003- <p>
    003+ <p><br /></p>
    004- </p><pre>{
    004+ <pre>{
    008-
    008+ <p><span>2、Guides中content为空报错</span></p>
    009- <p><span>2、Guides中content为空报错</span></p>
    009+ <p><img src="{6842.png}" alt="" /></p>
    010- <p><img src="{6842.png}" alt="" /></p>
    010+ <p><br /></p>
    011- <p><br /></p>
    011+ <pre>{
    012- <pre>{
    012+ "error_message": "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content' cannot be null (SQL: insert into `unit_guides` (`img_url`, `content`, `unit_id`, `updated_at`, `created_at`) values (http://math-concept-dev.liangzhicn.com/uploads/images/ph3DkNU8HcWi1i4rJRelaHkhecEMZjlBCRqW1GYc.jpg, ?, 23, 2022-06-07 11:35:09, 2022-06-07 11:35:09))",
    013- "error_message": "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'content' cannot be null (SQL: insert into `unit_guides` (`img_url`, `content`, `unit_id`, `updated_at`, `created_at`) values (http://math-concept-dev.liangzhicn.com/uploads/images/ph3DkNU8HcWi1i4rJRelaHkhecEMZjlBCRqW1GYc.jpg, ?, 23, 2022-06-07 11:35:09, 2022-06-07 11:35:09))",
    013+ "error_code": "23000"
    014- "error_code": "23000"
    014+ }</pre>
    015- }</pre>
    015+ <p>[结果]</p>
    016- <p>[结果]</p>
    016+ <p>1、标题允许重复;包括题目,单元-讲解/做题,课程,均无此限制</p>
    017- <p>1、标题允许重复;包括题目,单元-讲解/做题,课程,均无此限制</p>
    017+ <p>2、Guides的content不是必填项,应允许为空,请参考禅道https://zentao.liangzhicn.com/zentao/story-view-1735.html</p>
    018- <p>2、Guides的content不是必填项,应允许为空,请参考禅道https://zentao.liangzhicn.com/zentao/story-view-1735.html</p>
    018+ <p>[期望]</p>
    019- <p>[期望]</p>
    019+ <br />
    020- <br />
  5. 2022-06-08 11:24:21, 由 周逢宇 解决,方案为 已解决
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2022-06-08 11:24:14"。
    修改了 指派给 ,旧值为 "fyzhou",新值为 "mhhu"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "fyzhou"。
    修改了 解决方案,区别为:
    001-
    001+ fixed
    001-
    001+ fixed
  6. 2022-06-08 15:20:51, 由 胡明华 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "mhhu",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "mhhu"。
    修改了 关闭日期,旧值为 "",新值为 "2022-06-08 15:20:51"。
所属产品 MathConcept后端
所属模块 学习管理
来源用例
所属计划 计划1.0
Bug类型 代码错误
严重程度
优先级 3
Bug状态 已关闭
激活次数 0
激活日期
是否确认
当前指派 Closed 于 2022-06-08 15:20:51
截止日期 0000-00-00
反馈者
通知邮箱
操作系统 全部
浏览器
关键词
抄送给
所属项目 MathConcept
相关需求 #1735 新增/编辑学习重点-讲解
相关任务 新增单元
由谁创建 胡明华 于 2022-06-07 11:46:11
影响版本 主干
由谁解决 周逢宇 于 2022-06-08 11:24:14
解决版本 主干
解决方案 已解决
由谁关闭 胡明华 于 2022-06-08 15:20:51
最后修改 胡明华 于 2022-06-08 15:20:51
相关Bug
相关合并请求